﻿using System.ComponentModel.DataAnnotations.Schema;

namespace BlogSystem.Data.Entity;

[Table("sys_article")]
public class Article  : BaseEntity,IEntity
{
    /// <summary>
    /// 帖子对应的用户
    /// </summary>
    [Column("user_id")]
    public int? UserId { get; set; } 
    
    /// <summary>
    /// 帖子标题
    /// </summary>
    [Column("title")]
    public string Title { get; set; }

    /// <summary>
    /// 帖子内容
    /// </summary>
    [Column("Content")]
    public string Content { get; set; }


    /// <summary>
    /// 阅读人数
    /// </summary>
    [Column("read_count")]
    public int? ReadCount { get; set; } = 0;

    /// <summary>
    /// 点赞人数
    /// </summary>
    [Column("like_count")]
    public int? LikeCount { get; set; } = 0;

    /// <summary>
    /// 收藏人数
    /// </summary>
    [Column("save_count")]
    public int? SaveCount { get; set; } = 0;
    
    
}